<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Recipes extends Admin_Controller {

	public $folder = 'recipes/';
	
	public function __construct()
	{
		parent::__construct();
		$this->load->model('recipe_model');
		$this->load->library('form_validation');
	}
	
	// ------------------------------------------------------------------------
	
	public function index()
	{
		redirect('recipes/all');
	}
	
	// ------------------------------------------------------------------------
	
	public function create_ingredient()
	{
		if ($this->input->is_ajax_request())
		{
		
		}
		
		$data = array(
			'title'			=> 'Create Ingredient',
			'content'		=> $this->folder . 'create_ingredient',
			'active'		=> 'recipes',
			'websites'		=> $this->website_model->list_user_websites($this->user)
		);
		
		$this->load->view($this->tpl, $data);
	}
	
	// ------------------------------------------------------------------------
	
}

/* End of file recipes.php */
/* Location: ./application/controllers/recipes.php */